import {
  HTTP
} from "../utils/http.js"
class MyModel extends HTTP {
  // 获取首页运营活动
  getMainActiveParam(activeType) { //个人账户查询
    return this.request({
      url: 'program/bjShellAntMiniProgramService/getMainActiveParam',
      data: {
        activeType
      },
      method: 'POST'
    })
  }
  loadMyAccount() { //个人账户查询
    return this.request({
      url: 'bj/bjShellAntMiniProgramService/getAcountByOpenId',
      data: {},
      method: 'POST'
    })
  }
  loadMyAccount2() { //个人账户查询
    return this.request({
      url: 'program/antCouponService/getZhangHu',
      data: {},
      method: 'POST'
    })
  }
  getOilType() {
    return this.request({
      url: 'program/antProgramApiService/getOilType',
      data: {},
      method: 'POST'
    })
  }
  settingMsgload() { // 设置信息查询
    return this.request({
      url: 'program/antProgramApiService/showPersonalCenter',
      data: {},
      method: 'POST'
    })
  }
  settingMsgSave(userId, goodsName, stationName) { //设置信息保存
    return this.request({
      url: 'program/antProgramApiService/savePersonalCenter',
      data: {
        userId,
        goodsName,
        stationName
      },
      method: 'POST'
    })
  }
  getOilPrice(shopId) {
    return this.request({
      url: 'program/antProgramApiService/getOilPrice',
      data: {
        shopId
      },
      method: 'POST'
    })
  }
}
export {
  MyModel
}